package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ActivitySnapUpDao;
import com.platform.entity.ActivitySnapUpEntity;
import com.platform.service.ActivitySnapUpService;

/**
 * 活动产品抢购Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-07-15 10:04:53
 */
@Service("activitySnapUpService")
public class ActivitySnapUpServiceImpl implements ActivitySnapUpService {
    @Autowired
    private ActivitySnapUpDao activitySnapUpDao;

    @Override
    public ActivitySnapUpEntity queryObject(Integer id) {
        return activitySnapUpDao.queryObject(id);
    }

    @Override
    public List<ActivitySnapUpEntity> queryList(Map<String, Object> map) {
        return activitySnapUpDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return activitySnapUpDao.queryTotal(map);
    }

    @Override
    public int save(ActivitySnapUpEntity activitySnapUp) {
        return activitySnapUpDao.save(activitySnapUp);
    }

    @Override
    public int update(ActivitySnapUpEntity activitySnapUp) {
        return activitySnapUpDao.update(activitySnapUp);
    }

    @Override
    public int delete(Integer id) {
        return activitySnapUpDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return activitySnapUpDao.deleteBatch(ids);
    }
}
